<template>
 <goods type=0 @refreshDataList="refreshData" ref="goods"></goods>
</template>

<script>
import goods from './goods-add-or-update'
export default {
  components:{
    goods
  },
  data(){
    return{
      dataForm:{
        id:'',
      }
    }
  },
  methods:{
    init(){
       this.$nextTick(() => {
        this.$refs.goods.dataForm.id = this.dataForm.id;
        this.$refs.goods.init()
      })
    },
    refreshData(){
      this.$emit("refreshDataList");
    }
  }
}
</script>
